﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;

namespace MyTcpIp.speedRealTVol
{
    [StructLayoutAttribute(LayoutKind.Sequential, Pack = 4)]
    public struct ChannelVoltage
    {
        public Int16 ChID;
        public float TopVolt;
        public float BotmVolt;
    }

    [StructLayoutAttribute(LayoutKind.Sequential, Pack = 4)]
    public struct SpeedRealTVol
    {
        public UInt16 Year;
        public byte Month;
        public byte Day;
        public byte Hour;
        public byte Minute;
        public byte Second;
        public UInt16 Millisecond;

        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 6)]
        public ChannelVoltage[] ChVols;
    }
}
